package com.zmzncs.lmtc.module.finance.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 资金记录表
 * </p>
 *
 * @author JD
 * @since 2020-09-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("capital_record")
@ApiModel(value="CapitalRecord对象", description="资金记录表")
public class CapitalRecord implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "中萌用户编号")
    private Long customerId;

    @ApiModelProperty(value = "第三方支付账户编号")
    private String accountNo;

    @ApiModelProperty(value = "交易流水编号")
    private String tradeNo;

    @ApiModelProperty(value = "订单号")
    private String orderId;

    @ApiModelProperty(value = "交易金额（0元不记）")
    private BigDecimal amount;

    @ApiModelProperty(value = "资金方向（以公司对公账户角度判断in，out）")
    private String capitalDirection;

    @ApiModelProperty(value = "交易类型（公司三方账户充值，手续费补贴，出场缴费，接口服务费，月租卡，时长）")
    private String tradeType;

    @ApiModelProperty(value = "交易描述")
    private String tradeDescribe;

    @ApiModelProperty(value = "交易时间")
    private Date tradeTime;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;


}
